﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="EmpModifyReq.aspx.cs" Inherits="PresentationLayer.View.EmpModifyReq" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style6
        {
            height: 104px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">

            <uc1:mainMenu ID="mainMenu1" runat="server" />

        </td><td>
<div style="vertical-align:top;">
<center><h2><u>Modify Requisition</u></h2></center>
    
        <table class="style1">
            <tr>
                <td class="style6">
                    <asp:Label ID="Label5" runat="server" Text="Requisition Form Id"></asp:Label>
                    &nbsp;<asp:Label ID="lblReqFormId" runat="server" Text="Label"></asp:Label>
                                <br />
                                <asp:GridView ID="ReqDetailsView" runat="server" autogeneratecolumns="False" 
                                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                                     
                                    onrowdeleting="ReqDetailsView_RowDeleting" 
                                    onrowupdating="ReqDetailsView_RowUpdating" 
                                    onselectedindexchanged="ReqDetailsView_SelectedIndexChanged" 
                        Width="800px" onrowcommand="ReqDetailsView_RowCommand">
                                    <AlternatingRowStyle BackColor="White" />
                                    <columns>
                                    <asp:TemplateField HeaderText="No.">
                <ItemTemplate>
                    <asp:Label ID="lblSerNo" runat="server" Text='<%#Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="50px" />
            </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ItemCode">
                                         <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("ItemId") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ItemId") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Item Name">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("ItemName") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("ItemName") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="UOM">
                                         <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("UOM") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Eval("UOM") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                                                               
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Requested Qty.">
                                            <ItemTemplate>
                                            <table><tr><td>
                                                <asp:TextBox ID="tbQty" runat="server" Text='<%# Eval("RequestedQty") %>' 
                                                    CausesValidation="True" Height="20px" Width="52px"></asp:TextBox>
                                            </td>
                                            <td>
                                                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                                                    runat="server" ControlToValidate="tbQty" ErrorMessage="Invalid Quantity" 
                                                    ForeColor="Red" ValidationExpression="[1-9]+\d*"></asp:RegularExpressionValidator>
                                            </td></tr></table>
                                               
&nbsp;<asp:HiddenField ID="hdnItemVAlue" runat="server" 
                                                    value='<%# Eval("ItemId") %>' />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                                        </asp:TemplateField>
                                        <asp:ButtonField ButtonType="Button" CommandName="Update" Text="Update" 
                                            CausesValidation="True" />
                                        <asp:ButtonField ButtonType="Button" CausesValidation="False" 
                                            CommandName="Delete" Text="Delete" />
                                    </columns>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Button ID="btnCancel" runat="server" Text="Close" Visible="False" 
                        Width="72px" />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                </td>
            </tr>
        </table>
    
    </td></tr></table>
</asp:Content>
